#include "type.h"
#include "user_interface.h"

void user_interface_cmd_help(uint8_t argc, int8_t **argv);
void user_interface_cmd_set_speed(uint8_t argc, int8_t **argv);
void user_interface_cmd_on(uint8_t argc, int8_t **argv);
void user_interface_cmd_i2c_read(uint8_t argc, int8_t **argv);
void user_interface_cmd_reboot(uint8_t argc, int8_t **argv);
void user_interface_cmd_i2c_write(uint8_t argc, int8_t **argv);
void user_interface_cmd_get_adc(uint8_t argc, int8_t **argv);
void user_interface_cmd_get_test_value(uint8_t argc, int8_t **argv);

typedef struct ui_cmd_t
{
  int8_t *command;
  uint8_t minArgs;
  uint8_t maxArgs;
  void (*func)(uint8_t argc, int8_t **argv);
  int8_t *description;
} ui_cmd_t;

extern uint8_t motors_on;
extern ui_cmd_t ui_cmd_tbl[];

